package org.simplecrm.repository.user;

import org.simplecrm.domain.user.User;

import java.util.List;

/**
 * Defines an interface for obtaining and changing data of DB
 * from table "security_user".
 */
public interface UserDAO {

    /**
     * Is used for obtaining user from DB for security issues.
     *
     * @param username username
     * @return
     */
    User getUserByName(String username);

    /**
     * @return
     */
    List<User> getUsersByGroupId(Integer groupId);

}